using System;
using System.Collections.Generic;
using System.Text;

namespace Tortuga.Core.TortoiseCommands {
	/// <summary>
	/// Rebuilds the windows icon cache. Only use this in case the windows icons are corrupted. A side effect of this (which can't be avoided) is that the icons on the desktop get rearranged. /noquestion
	/// http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/apc.html
	/// </summary>
	public class RebuildIconCacheCommand : TortoiseCommand {
		public RebuildIconCacheCommand()
			: base("settings") {
			this.OptionsToBuild = new List<BuildOptionDelegate>(new BuildOptionDelegate[] {
				BuildNoQuestion,
				this.BuildNoTempFile,
				this.BuildCloseOnEnd
			});
		}

		/// <summary>
		/// Builds the /noquestion option
		/// </summary>
		/// <returns></returns>
		public static string BuildNoQuestion() {
			return BuildOption("noquestion", true);
		}
	}
}
